<% form_tag :action => 'update' do %>
<%= error_messages_for 'catalog' %>
  <fieldset style="width: 25em;">
    <legend>Edit Catalog Properties</legend>
    <% if @current_catalog.parent %>
      <p>
        <label for="catalog_name">Catalog Name</label><br/>
        <%= text_field 'catalog', 'name'  %>
      </p>
    <% else %>
      <p>
        <label for="catalog_name">Catalog Name</label><br/>
        <%= h(@current_catalog.name) %>
      </p>
    <% end %>

    <p>
      <label for="catalog_description">Description</label><br/>
      <%= text_area 'catalog', 'description', :cols => 50, :rows => 5  %>
    </p>

    <p>
      <%= radio_button("catalog", "access", 0) %> Private &nbsp;
      <%= radio_button("catalog", "access", 1) %> Protected &nbsp;
      <%= radio_button("catalog", "access", 2) %> Public &nbsp;  
    </p>
    <%= submit_tag 'Save' %>
  </fieldset>
<% end %>

<%= link_to 'Back', :action => 'list' %>
